package com.geralt.im.client;

import java.io.IOException;
import java.io.InputStream;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.OutputStream;
import java.net.Socket;

import javax.swing.JOptionPane;

import com.geralt.im.controller.Controller;
import com.geralt.im.protocol.Request;
import com.geralt.im.protocol.Response;

public abstract class ClientReaderRunnable implements Runnable {


	protected Socket socket;
	public ClientReaderRunnable(Socket socket) {
		this.socket = socket;
	}

	public abstract void write(Object request);
	
	
	public abstract Response read() throws ClassNotFoundException, IOException;
}
